projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f46efdf
)
(create_process): If vfork fails, close forkin and forkout.
author
Richard M. Stallman
<rms@gnu.org>
Thu, 28 Apr 1994 04:35:39 +0000
(
04:35
+0000)
committer
Richard M. Stallman
<rms@gnu.org>
Thu, 28 Apr 1994 04:35:39 +0000
(
04:35
+0000)
src/process.c
patch
|
blob
|
history
diff --git
a/src/process.c
b/src/process.c
index 8cb89b94d48cfcead639d7d245173d108428fd95..8b7b0dd46d0ec140c61adfcebb7c2795f5f7e54a 100644
(file)
--- a/
src/process.c
+++ b/
src/process.c
@@
-1396,7
+1396,13
@@
create_process (process, new_argv, current_dir)
}
if (pid < 0)
- report_file_error ("Doing vfork", Qnil);
+ {
+ if (forkin >= 0)
+ close (forkin);
+ if (forkin != forkout && forkout >= 0)
+ close (forkout);
+ report_file_error ("Doing vfork", Qnil);
+ }
XFASTINT (XPROCESS (process)->pid) = pid;